package com.testing.class13;

import com.testing.inter.InterKeyWord;

/**
 * @Classname InterKwTest
 * @Description 类型说明
 * @Date 2022/11/2 22:25
 * @Created by 特斯汀Roy
 */
public class InterKwTest {
    public static void main(String[] args) {
        InterKeyWord inter=new InterKeyWord();
        inter.saveParam("电商域名","http://www.testingedu.com.cn:8000/index.php");
        inter.saveParam("用户名","13800138006");
        inter.testPostUrl("{电商域名}?m=Home&c=User&a=do_login&t=0.8568421812495208","username={用户名}&password=123456&verify_code=1");
        inter.assertJsonValue("登陆成功","$.msg");

        inter.testPostUrl("{电商域名}?m=Home&c=User&a=do_login&t=0.8568421812495208","username={用户名}&password=1234567&verify_code=1");
        inter.assertJsonValue("用户名密码错误","$.msg");

        inter.testPostUrl("http://localhost:9090/user/login","username=roy&password=123456");
        inter.assertJsonValue("恭喜你，登录成功","$.msg");



    }
}
